
	<div class="adminrectangle"><h2><?php echo $title; ?></h2></div>
	<div class="grid_12 alpha omega"><h5><?php echo lang('all_riders_list');?></h5></div>
  	<p><a href="<?php echo site_url('admin/create_rider');?>" class="button add"><span class="icon icon13"></span><span class="label"><?php echo lang('create_new_rider');?></span></a></p>
	<?php if(isset($message))
	{
	?>
	<div id="infoMessage"><?php echo $message;?></div>
	<?php
  }
  ?>
  <?php if($help_message_text !="") { ?>
    <div id="helpMessage" title="<?php echo lang($help_message_title);?>"><?php echo lang($help_message_text);?></div>
  <?php } ?>
  <div class="grid_12 alpha omega">
    <?php echo form_open('admin/riders/save'); ?>
    <button type="submit" class="button positive"><span class="icon icon6"></span><span class='label'><?php echo lang('save');?></span></button>
    <div class='clear'></div>
  	<table class='stripeMe'>
      <th><?php echo lang('number');?></th><th><?php echo lang('name');?></th><th><?php echo lang('country');?></th><th><?php echo lang('team');?></th><th><?php echo lang('rider_type');?></th><th></th><th></th></tr>
  		<?php
  		foreach ($riders as $rider)
  		{
  		?>
      <?php
        if(!$rider->active || !$rider->starter)
        {
      ?>
        <tr class="redstriped">
      <?php    
        }
        else
        {
      ?>
        <tr>
      <?php    
      }
      ?>
  			
  				<td><?php echo $rider->number;?></td>
  				<td><?php echo $rider->last_name;?>&nbsp;<?php echo $rider->first_name;?></td>
  				<td><?php echo $rider->country;?></td>
  				<td><?php echo $rider->team_name." (".$rider->team_shortname.")";?></td>
          <td><?php echo lang($rider->type_description);?></td>
          <td>
            <?php echo form_checkbox($starter[$rider->rider_id])." ".lang('starter'); ?><br />
            <?php echo form_checkbox($active[$rider->rider_id])." ".lang('active'); ?>
          </td>
          <td> <?php echo anchor("admin/edit_rider/".$rider->rider_id,"<span class='label'>".lang('edit_rider')."</span>","class='button' title='".lang('edit_rider')."'"); ?>
  			</tr>	
  		<?php	
  		}
  		?>
  	</table>
    <button type="submit" class="button positive"><span class="icon icon6"></span><span class='label'><?php echo lang('save');?></span></button>
    <?php echo form_close(); ?>
  </div>  

